import { BasicFetchResult } from '../model/baseModel';
import { defHttp } from '@/utils/http/axios';
const api = '/sysUserColumns';
/**
 * 查询用户自定义列表字段不分页
 * @author frank
 * @date 2023-05-06 14:23:48
 */
export const list = (tableKey: string) =>
  defHttp.get<BasicFetchResult<any>>({
    url: api + '/list',
    params: { tableKey },
  });
/**
 * 添加用户自定义列表字段
 * @author frank
 * @date 2023-05-06 14:23:48
 */
export const add = (params?: any) =>
  defHttp.post({ url: api + '/add', params });
